
<div class="box-main">

    <div class="box-note">
        <div class="post-it">
            <div class="post-text" id="post-it">
                <a style=" cursor:pointer"><img src="<?php echo WWW_URL ?>images/post-it.png" /></a>
            </div>
            <div class="post-type post-it-show" style="display:none">
                <ul>
                    <li><a href="<?php echo url('/ad/register', array('type' => 'equipment')) ?>">Equipment</a></li>
                    <li><a href="<?php echo url('/ad/register', array('type' => 'supply')) ?>">Supplies</a></li>
                    <li><a href="<?php echo url('/ad/register', array('type' => 'vendor')) ?>">Vendor</a></li>
                    <li><a href="<?php echo url('/ad/register', array('type' => 'technical')) ?>">Technical Services</a></li>
                    <li><a href="<?php echo url('/ad/register', array('type' => 'job')) ?>" >Jobs Classifies</a></li>
                    <li><a href="<?php echo url('/ad/register', array('type' => 'resume')) ?>">Resume</a></li>
		    <?php /*
		      <li><a href="<?php echo url('/ad/register', array('type' => 'advertise')) ?>">Advertise</a></li>
		     * 
		     */ ?>
                </ul>
            </div>
        </div>
        <div class="search-it">
            <div class="post-text" id="search-it">
                <a href="#"><img src="<?php echo WWW_URL ?>images/search-it.png" /></a>
            </div>
            <div class="post-type search-it-show" style="display:none; padding:10px;">
                <form action="<?php echo url('/ad/search') ?>" id='searchForm'>
                    <div class="search-main">
                        <div>
                            <label>Type of search</label>
                            <select name="type">
                                <option value="equipment">Equipment</option>
                                <option value="supplies">Supplies</option>
                                <option value="vendor">Vendor</option>
                                <option value="technical">Technical Services</option>
                                <option value="job">Jobs Classifies</option>
                                <option value="resume">Resume</option>
				<?php /*
				  <option value="other">Other</option>
				 * 
				 */ ?>
                            </select>
                        </div>
			<?php /*
			  <div>
			  <label>Sub Type</label>
			  <?php echo CHtml::dropDownList('sub', '', Equipment::getTypes()) ?>
			  </div>
			 * 
			 */ ?>

			<div>
			    <label>Category</label>
			    <select name = "category">
				<option value = ''>All</option>
				<?php foreach (Category::getList() as $category) :
				    ?>

    				<option value="<?php echo $category->category_id ?>"><?php echo h($category->name) ?></option>

				<?php endforeach; ?>

			    </select>
			</div>
			<?php /*
			  <div>
			  <label> Manufacturer</label>
			  <select>
			  <option> - Select - </option>
			  </select>
			  </div>
			 * 
			 */ ?>
			<div>
			    <label>Country</label>
			    <?php echo CHtml::dropDownList('country', 'US', Country::getSelectList()) ?>
			</div>

			<div>
			    <label>State</label>
			    <input style="width: 101px;" type="text" name="state-search" value="<?php if (isset($_GET['state-search'])) echo $_GET['state-search']; ?>"/>
			</div>
			<div style="clear:both; margin-top:5px;">
			    <a href="#myModal1" role="button" data-toggle="modal" class="btn btn-warning btn-large" style="margin-left: 68px;">Search</a>
			</div>
		    </div>
		</form>
	    </div>
	</div>
    </div>

</div><!--box-main-->



<div id="myModal1" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">Ã—</button>
        <h3 id="myModalLabel">Terms and conditions</h3>
    </div>
    <div class="modal-body">
        <label class="checkbox">
            <input type="checkbox" name="post">Agree to the terms to continue</label>
        <div class="box-agree">
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ligula id sem tristique ultrices eget id neque. Duis enim turpis, tempus at accumsan vitae, lobortis id sapien. Pellentesque nec orci mi, in pharetra ligula. Nulla facilisi. Nulla facilisi. Mauris convallis venenatis massa, quis consectetur felis ornare quis. Sed aliquet nunc ac ante molestie ultricies. Nam pulvinar ultricies bibendum. Vivamus diam leo, faucibus et vehicula eu, molestie sit amet dui. Proin nec orci et elit semper ultrices. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed quis urna mi, ac dignissim mauris. Quisque mollis ornare mauris, sed laoreet diam malesuada quis.
            <br /><br />
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ligula id sem tristique ultrices eget id neque. Duis enim turpis, tempus at accumsan vitae, lobortis id sapien. Pellentesque nec orci mi, in pharetra ligula. Nulla facilisi. Nulla facilisi. Mauris convallis venenatis massa, quis consectetur felis ornare quis. Sed aliquet nunc ac ante molestie ultricies. Nam pulvinar ultricies bibendum. Vivamus diam leo, faucibus et vehicula eu, molestie sit amet dui. Proin nec orci et elit semper ultrices. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed quis urna mi, ac dignissim mauris. Quisque mollis ornare mauris, sed laoreet diam malesuada quis.
        </div>

    </div>
    <div class="modal-footer">
        <a class="btn" href="#" id='submitform'>Next</a>
    </div>
</div><!--pop-up1-->

<div class="banner">
    <div class="title">Feature advertisers</div>



    <div id="jslidernews2" class="lof-slidecontent" style="width:700; height:400px;">
        <div class="preload"><div></div></div>

        <div  class="button-previous">Previous</div>

        <!-- MAIN CONTENT -->
        <div class="main-slider-content" style="width:700; height:400px;">            
	    <ul class="sliders-wrap-inner">
		<?php foreach ($featureAds as $ad) : ?>
    		<li>
    		    <img src="<?php echo $ad->getFeatureImgUrl() ?>" title="<?php echo h($ad->title) ?>" />
    		    <div class="slider-description">
    			<div class="description-wrapper">
    			    <h4><?php echo h($ad->title) ?></h4>
    			    <p><?php echo h($ad->content, 90) ?></p>
    			    <p></p>
    			</div>
    		    </div>
    		</li>
		<?php endforeach; ?>
	    </ul>	    
        </div>
        <!-- END MAIN CONTENT -->
        <div class="button-next">Next</div>
    </div>    

</div><!--banner-->
<script>
    $('#submitform').click(function() {
	$('#searchForm').submit();
	return false;
    });
</script>